﻿@model Mondial2014.Models.Competition.Fixture

@{
    ViewBag.Title = "עידכון תוצאה";
}

<h2>עדכן תוצאת משחק</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="form-horizontal">

        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.Id)

        <table class="table">
            <tr>
                <th>
                    @Html.DisplayFor(model => model.Team1.Name)
                </th>
                <th>
                    @Html.DisplayFor(model => model.Team2.Name)
                </th>
            </tr>
            <tr>
                <td>
                    @Html.EditorFor(model => model.Team1Score)
                    @Html.ValidationMessageFor(model => model.Team1Score)
                </td>
                <td>
                    @Html.EditorFor(model => model.Team2Score)
                    @Html.ValidationMessageFor(model => model.Team2Score)
                </td>
            </tr>
        </table>

        <div class="form-group">
            <input type="submit" value="Save" class="btn btn-default" />
        </div>
    </div>
}

<div>
    @Html.ActionLink("חזרה לרשימת משחקים", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}